package com.d0312;

public class OuterClass2 {
    private String sex ;
    private static String name ="老二";

    static class InnerClass{
        private static String name1="内部老二";
        public void display(){
            System.out.println("name"+name);
            System.out.println("name1"+name1);
        }

    }
    public void show(){
        System.out.println(InnerClass.name1);
        new OuterClass2.InnerClass().display();
    }

    public static void main(String[] args) {
        OuterClass2 outerClass2=new OuterClass2();
        outerClass2.show();
    }
}
